package com.qingxin.wuye.repertory.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
 * 物品类型
 * @author hezhiwei
 *
 */
@Entity
@Table(name = "res_type")
public class ResType extends com.qingxin.sys.entity.BaseEntity implements
		java.io.Serializable {

	private static final long serialVersionUID = -885698234047202167L;
	private String typeid;
	private String typeName;//物品类型名称
	private String typeCode;//类别代码
	private String createBy;
	private Date createTime;

	// Constructors

	/** default constructor */
	public ResType() {
	}

	/** minimal constructor */
	public ResType(String typeid) {
		this.typeid = typeid;
	}

	/** full constructor */
	public ResType(String typeid, String typeName,String typeCode ,String createBy,
			Date createTime) {
		this.typeid = typeid;
		this.typeName = typeName;
		this.typeCode = typeCode;
		this.createBy = createBy;
		this.createTime = createTime;
	}

	
	public ResType(String typeid, String typeName,String typeCode) {
		super();
		this.typeid = typeid;
		this.typeName = typeName;
		this.typeCode = typeCode;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "typeid", unique = true, nullable = false, length = 100)
	public String getTypeid() {
		return this.typeid;
	}

	public void setTypeid(String typeid) {
		this.typeid = typeid;
	}

	@Column(name = "type_name", length = 100)
	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
	@Column(name = "type_code", length = 100)
	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	@Column(name = "create_by", length = 100)
	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name = "create_time", length = 23)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}